package com.shi.yibanjia.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shi.yibanjia.entity.po.Publicity;
import com.shi.yibanjia.mapper.PublicityMapper;
import com.shi.yibanjia.service.PublicityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 20556
 * @description 针对表【tb_publicity(公告表)】的数据库操作Service实现
 * @createDate 2024-04-18 13:21:15
 */
@Service
public class PublicityServiceImpl extends ServiceImpl<PublicityMapper, Publicity>
        implements PublicityService {
    @Resource
    private PublicityMapper publicityMapper;

    public Publicity getNewPublicity() {
        return publicityMapper.selectNewPublicity();
    }
}




